<?php
declare (strict_types = 1);

namespace app\admin\validate\admin;

use think\Validate;

class Config extends Validate
{
    /**
     * 定义验证规则
     * 格式：'字段名'	=>	['规则1','规则2'...]
     *
     * @var array
     */	
    protected $rule = [
        'advisory_pool_search_time|数据回收天数' => 'number|gt:0',
        'warning_price|预警价格比例' => 'number|between:10,100'
    ];

    protected $message = [
        'advisory_pool_search_time.gt' => '数据回收天数格式错误',
        'warning_price.between' => '预警价格比例取值应在10~100'
    ];

}
